//
//  UserDB.h
//  Order
//
//  Created by funny on 12-3-22.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
    UserJurisdictionTypePlain = 0,
    UserJurisdictionTypeAdmin,
} UserJurisdictionType;


@interface UserDB : NSObject {
	NSInteger userID;
	
	NSString *name;
	NSString *key;
	
	UserJurisdictionType jurisdictionType;
}

@property (nonatomic, readonly) NSInteger userID;

@property (nonatomic, readonly) NSString *name;
@property (nonatomic, copy) NSString *key;

@property (nonatomic, assign) UserJurisdictionType jurisdictionType;

+ (UserDB *)userDBWithID:(NSInteger)newID andName:(NSString *)newName andKey:(NSString *)newKey andJurisdiction:(UserJurisdictionType)newJurisdiction;

@end
